#!/bin/bash
rm -rf ~/tmp
rm -rf libglvnd-1.3.4/build
rm -rf libglvnd-1.3.4/src/EGL/g_egldispatchstubs.c
rm -rf libglvnd-1.3.4/src/EGL/g_egldispatchstubs.h
rm -rf libglvnd-1.3.4/src/GLX/g_glx_dispatch_stub_list.h
rm -rf libglvnd-1.3.4/src/GLdispatch/vnd-glapi/g_glapi_mapi_gl_tmp.h
rm -rf libglvnd-1.3.4/src/GLdispatch/vnd-glapi/g_glapi_mapi_glesv1_tmp.h
rm -rf libglvnd-1.3.4/src/GLdispatch/vnd-glapi/g_glapi_mapi_glesv2_tmp.h
rm -rf libglvnd-1.3.4/src/GLdispatch/vnd-glapi/g_glapi_mapi_opengl_tmp.h
mkdir ~/tmp/
tar -zcv -f ~/tmp/libglvnd-1.3.4.tar.gz libglvnd-1.3.4
cp libglvnd.spec ~/tmp/
cp libglvnd.yaml ~/tmp/
cd ~/tmp/
rpmbuild -bb -D "_sourcedir`pwd`" *.spec --nodeps
